//
//  TZHomeModel.h
//  OurFramework
//
//  Created by 949699582 on 2019/8/5.
//  Copyright © 2019 com.cunyin.paywaiter. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "TZHomeModel.h"
/*
 这个相当于Model，我们可以在Model里边完成数据的请求，然后在ViewModel中调用
 */

typedef void(^Success)(NSArray * _Nullable arr);
typedef void(^Failure)(NSString * _Nullable err);
NS_ASSUME_NONNULL_BEGIN

@interface TZHomeModel : NSObject

@property (nonatomic,copy) NSString *name;
@property (nonatomic,strong) NSString *header;

//获取数据，成功失败
-(void)getDataSuccess:(Success)success AndFailure:(Failure)failure page:(int)page count:(int)count;

//初始化供view用的那些参数
- (void)setupViewModel;
@end

NS_ASSUME_NONNULL_END
